package com.example.model;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class UserDto {

    @NotBlank(message = "name不能为空")
    private String name;

    @NotNull(message = "age不能为空")
    @Min(value = 1, message = "age不能小于1")
    private Integer age;

    private Integer version;
}
